/**
 * @format
 */

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import {StoreContext} from 'redux-react-hook';
import store from './src/redux/store';
import {persistor} from './src/redux/store';
import {PersistGate} from 'redux-persist/lib/integration/react';
import React from 'react';
import {ToastProvider} from 'react-native-toast-notifications';
function AnyLive(properties) {
  return (
    <ToastProvider>
      <StoreContext.Provider value={store}>
        <PersistGate loading={null} persistor={persistor}>
          <App properties={properties} />
        </PersistGate>
      </StoreContext.Provider>
    </ToastProvider>
  );
}
AppRegistry.registerComponent(appName, props => AnyLive);
